//
//  KDBaseTool.h
//  警用舆情平台
//
//  Created by 魏强 on 15/5/27.
//  Copyright (c) 2015年 魏强. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "KDHttpTool.h"
@interface KDBaseTool : NSObject
+ (void)get:(NSString *)url param:(id)param resultClass:(Class)resultClass  success:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure;

+ (void)post:(NSString *)url param:(id)param resultClass:(Class)resultClass  success:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure;

+ (void)post:(NSString *)url bodyJson:(id)param resultClass:(Class)resultClass  success:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure;

+ (void)post:(NSString *)url param:(id)param resultClass:(Class)resultClass  constructingBodyWithBlock:(void(^)(id<AFMultipartFormData> formData))imageblock success:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure;

+ (void)put:(NSString *)url param:(id)param resultClass:(Class)resultClass  success:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure;
@end
